#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {

	double a, b;
	cin >> a >> b;
	if (-1 <= a && a <= 1 && -1 <= b && b <= 1)
		cout << "YES";
	else
		cout << "NO";
	return 0;
}
